/**
 * Created by thinkpad on 2017-06-06.
 */
XBox.define("form.sosimple", {
    title:"简单html表单",
    templates: {
        main: ["<div><div class='form'></div></div>"],
    },
    elements: {
        form: "div.form",
    },
    render: function () {

        //debugger;
        //this.controls.form.append("<textarea class='textareatest'></textarea>");

        //this.controls.form.find(".textareatest").kendoEditor({
        //    value: "<p>foo</p>",
        //    encoded: true
        //});
        //debugger;
        //表单渲染
        var form = new XBox.form({
            container: this.controls.form,
            itemClass: "form-item",
           ctlClass: "form-ctl",
            items: {
                ID: { type: "text",   ctlClass: "form-ctl2",validation:{required:true}},
            },
            data: {
                ID: "1",
            }
            //}, function () {
            //    var d = this.getValues();
            //    var dj = JSON.stringify(d);
            //    alert(dj);
        });
    }
});
